package start.spring.basic.job.quartz;

import java.util.Date;

/**
 * ****************************************************************************
 * 任务属性实体类
 *
 * @author(作者)：xuyongyun	
 * @date(创建日期)：2018年8月30日
 ******************************************************************************
 */
public class TaskBean implements java.io.Serializable {

	private static final long serialVersionUID = -5645355048189741699L;

	/** 任务名称 */       
    private String jobName;
        
    /** 任务分组，任务名称+组名称应该是唯一的 */
    private String jobGroup;
            
    /** 触发器状态 */
    private String triggerStatus;
    
    /** 触发器状态名称 */
    private String triggerStatusName;
           
    /** 任务运行时间cron表达式 */       
    private String cronTime;
        
    /** 任务描述 */       
    private String description;
           
    /** 任务调用类名，包名+类名，通过类反射调用    */
    private String jobClass;
           
    /** 启动时间 */       
    private Date startTime;
             
    /** 前一次运行时间 */       
    private Date previousTime;
           
    /** 下次运行时间 */       
    private Date nextTime;
    
    /** 多线程任务的并发线程数 */ 
    private long threadNum;
    
    /** 多线程任务的执行超时时间 */ 
    private long timeOut;
    
    /** 有效标志 */ 
    private String yxbz;
    
    /** 是否并发 */ 
    private String sfbf;

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}

	public String getTriggerStatus() {
		return triggerStatus;
	}

	public void setTriggerStatus(String triggerStatus) {
		this.triggerStatus = triggerStatus;
	}
	
	public String getTriggerStatusName() {
		return triggerStatusName;
	}

	public void setTriggerStatusName(String triggerStatusName) {
		this.triggerStatusName = triggerStatusName;
	}

	public String getCronTime() {
		return cronTime;
	}

	public void setCronTime(String cronTime) {
		this.cronTime = cronTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getJobClass() {
		return jobClass;
	}

	public void setJobClass(String jobClass) {
		this.jobClass = jobClass;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getPreviousTime() {
		return previousTime;
	}

	public void setPreviousTime(Date previousTime) {
		this.previousTime = previousTime;
	}

	public Date getNextTime() {
		return nextTime;
	}

	public void setNextTime(Date nextTime) {
		this.nextTime = nextTime;
	}

	public long getThreadNum() {
		return threadNum;
	}

	public void setThreadNum(long threadNum) {
		this.threadNum = threadNum;
	}

	public long getTimeOut() {
		return timeOut;
	}

	public void setTimeOut(long timeOut) {
		this.timeOut = timeOut;
	}

	public String getYxbz() {
		return yxbz;
	}

	public void setYxbz(String yxbz) {
		this.yxbz = yxbz;
	}

	public String getSfbf() {
		return sfbf;
	}

	public void setSfbf(String sfbf) {
		this.sfbf = sfbf;
	}

	@Override
	public String toString() {
		return "TaskBean [jobName=" + jobName + ", jobGroup=" + jobGroup + ", triggerStatus=" + triggerStatus
				+ ", triggerStatusName=" + triggerStatusName + ", cronTime=" + cronTime + ", description=" + description
				+ ", jobClass=" + jobClass + ", startTime=" + startTime + ", previousTime=" + previousTime
				+ ", nextTime=" + nextTime + ", threadNum=" + threadNum + ", timeOut=" + timeOut + ", yxbz=" + yxbz
				+ ", sfbf=" + sfbf + "]";
	}
}
